package org.ch02.job.test10;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author XCH
 * @date 2025 - 03 - 19
 */
public class MainTest {
    public static void main(String[] args) throws Exception {
        Map<String, Object> cond = new HashMap<>();
        cond.put("id", 1);
        cond.put("name", "张三");

        // 执行查询并返回 User 对象
        User user = (User) DbUtil.select4Bean(User.class, cond);

        // 输出查询结果
        if (user != null) {
            System.out.println("查询结果: " + user);
        } else {
            System.out.println("未找到符合条件的用户。");
            System.out.println();
        }
    }
}
